package com.ssy.lingxi.purchase.repository;


import com.ssy.lingxi.purchase.entity.purchaseinquiry.InteriorPurchaseInquiryLog;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
*交易中心-确认需求报价-商品报价详情
* @author wrc
* @date 2020/7/8
*/
@Repository
public interface InteriorPurchaseInquiryLogRepository extends JpaRepository<InteriorPurchaseInquiryLog, Long>, JpaSpecificationExecutor<InteriorPurchaseInquiryLog> {

    List<InteriorPurchaseInquiryLog> findAllByPurchaseInquiryId(Long purchaseInquiryId);

    void deleteAllByPurchaseInquiryId(Long purchaseInquiryId);

    void deleteAllByPurchaseInquiryIdIn(List<Long> purchaseInquiryIds);
}
